<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "dh_reply".
 *
 * @property integer $id
 * @property integer $code_id
 * @property string $content
 * @property integer $reply_time
 * @property string $reply_name
 * @property string $info_code
 */
class DhReply extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_reply';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['id', 'code_id', 'reply_time'], 'integer'],
            [['content'], 'string'],
            [['reply_name'], 'string', 'max' => 50],
            [['info_code'], 'string', 'max' => 10]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'code_id' => '信箱ID',
            'content' => '回复内容',
            'reply_time' => '回复时间',
            'reply_name' => '回复人',
            'info_code' => '回复码',
        ];
    }
}
